import http from '@/common/js/httpRequest'
//获取工序列表
export function getProcedureList (params) {
  return http({
    method: 'get',
    url: '/api/base/procedure/list',
    params
  })
}
//新增或修改工序
export function saveOrUpdateProcedure (data) {
	const url = !data.procedureId ? '/api/base/procedure/save' : '/api/base/procedure/update'
  return http({
    method: 'post',
    url: url,
    data
  })
}
//删除工序
export function deleteProcedure (ids) {
  return http({
    method: 'post',
    url: '/api/base/procedure/delete',
    data: ids,
    openDefultdata: true
  })
}